package site.wlwsjsx.iot_backend.entity;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class WorkstationEnvHalfHourAggView {

    private LocalDateTime halfHourStart;

    private String workstationCode;

    private Double avgTemperature;

    private Double avgHumidity;

    public WorkstationEnvHalfHourAggView() {
    }

    public LocalDateTime getHalfHourStart() {
        return halfHourStart;
    }

    public void setHalfHourStart(LocalDateTime halfHourStart) {
        this.halfHourStart = halfHourStart;
    }

    public String getWorkstationCode() {
        return workstationCode;
    }

    public void setWorkstationCode(String workstationCode) {
        this.workstationCode = workstationCode;
    }

    public Double getAvgTemperature() {
        return avgTemperature;
    }

    public void setAvgTemperature(Double avgTemperature) {
        this.avgTemperature = avgTemperature;
    }

    public Double getAvgHumidity() {
        return avgHumidity;
    }

    public void setAvgHumidity(Double avgHumidity) {
        this.avgHumidity = avgHumidity;
    }

    @Override
    public String toString() {
        return "WorkstationEnvHalfHourAggView{" +
                "halfHourStart=" + halfHourStart +
                ", workstationCode='" + workstationCode + '\'' +
                ", avgTemperature=" + avgTemperature +
                ", avgHumidity=" + avgHumidity +
                '}';
    }
}